<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件下载</title>
    <style>
        body { font-family: Arial, sans-serif; padding: 20px; }
        #downloadBtn { margin-top: 20px; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; cursor: pointer; }
        #downloadBtn:hover { background-color: #45a049; }
    </style>
</head>
<body>
<h2>文件下载</h2>
<p>文件已合并成功，点击下面的按钮下载文件：</p>
<button id="downloadBtn" onclick="startDownload()">下载文件</button>

<script>
    // 获取URL中的fileId
    const fileId = new URLSearchParams(window.location.search).get('fileId');
    const downloadUrl = "/file/download/" + fileId;

    // 下载文件
    function startDownload() {
        window.location.href = downloadUrl;
    }
</script>
</body>
</html>
